Package com.cisco.pt.ipc.sim.pdu.impl
Class NtpHeaderImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.NtpHeaderImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected booleanprotected intprotected Stringprotected ProtocolModeprotected intprotected Stringprotected intprotected floatprotected Stringprotected intprotected Stringprotected floatprotected floatprotected intprotected intprotected StringFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) booleanintgetMode()intintgetPoll()floatintfloatfloatintintvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetHostIpAddress(IPAddress hostIpAddress) voidsetIsNtpServerAuthenticate(boolean isNtpServerAuthenticate) voidsetLeapIndicator(int leapIndicator) voidsetMd5Passwd(String md5Passwd) voidsetMode(ProtocolMode mode) voidsetNtpVersion(int ntpVersion) voidsetOriginateTime(String originateTime) voidsetPoll(int poll) voidsetPrecision(float precision) voidsetReceiveTime(String receiveTime) voidsetRefClockID(int refClockID) voidsetRefClockTime(String refClockTime) voidsetRootDelay(float rootDelay) voidsetRootDespersion(float rootDespersion) voidsetSrvKeyId(int srvKeyId) voidsetStratum(int stratum) voidsetTransmitTime(String transmitTime) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
isNtpServerAuthenticate
protected boolean isNtpServerAuthenticate -
hostIpAddress
-
leapIndicator
protected int leapIndicator -
ntpVersion
protected int ntpVersion -
mode
-
stratum
protected int stratum -
poll
protected int poll -
precision
protected float precision -
rootDelay
protected float rootDelay -
rootDespersion
protected float rootDespersion -
refClockID
protected int refClockID -
refClockTime
-
originateTime
-
receiveTime
-
transmitTime
-
srvKeyId
protected int srvKeyId -
md5Passwd
-
-
Constructor Details
-
NtpHeaderImpl
public NtpHeaderImpl()
-
-
Method Details
-
getIsNtpServerAuthenticate
public boolean getIsNtpServerAuthenticate()- Specified by:
getIsNtpServerAuthenticatein interfaceNtpHeader- Returns:
- boolean Returns a boolean
-
setIsNtpServerAuthenticate
public void setIsNtpServerAuthenticate(boolean isNtpServerAuthenticate) - Specified by:
setIsNtpServerAuthenticatein interfaceNtpHeader- Parameters:
isNtpServerAuthenticate- Takes in a parameter of isNtpServerAuthenticate
-
getHostIpAddress
- Specified by:
getHostIpAddressin interfaceNtpHeader- Returns:
- IPAddress Returns a IPAddress
-
setHostIpAddress
- Specified by:
setHostIpAddressin interfaceNtpHeader- Parameters:
hostIpAddress- Takes in a parameter of hostIpAddress
-
getLeapIndicator
public int getLeapIndicator()- Specified by:
getLeapIndicatorin interfaceNtpHeader- Returns:
- int Returns a int
-
setLeapIndicator
public void setLeapIndicator(int leapIndicator) - Specified by:
setLeapIndicatorin interfaceNtpHeader- Parameters:
leapIndicator- Takes in a parameter of leapIndicator
-
getNtpVersion
public int getNtpVersion()- Specified by:
getNtpVersionin interfaceNtpHeader- Returns:
- int Returns a int
-
setNtpVersion
public void setNtpVersion(int ntpVersion) - Specified by:
setNtpVersionin interfaceNtpHeader- Parameters:
ntpVersion- Takes in a parameter of ntpVersion
-
getMode
-
setMode
-
getStratum
public int getStratum()- Specified by:
getStratumin interfaceNtpHeader- Returns:
- int Returns a int
-
setStratum
public void setStratum(int stratum) - Specified by:
setStratumin interfaceNtpHeader- Parameters:
stratum- Takes in a parameter of stratum
-
getPoll
public int getPoll() -
setPoll
public void setPoll(int poll) -
getPrecision
public float getPrecision()- Specified by:
getPrecisionin interfaceNtpHeader- Returns:
- float Returns a float
-
setPrecision
public void setPrecision(float precision) - Specified by:
setPrecisionin interfaceNtpHeader- Parameters:
precision- Takes in a parameter of precision
-
getRootDelay
public float getRootDelay()- Specified by:
getRootDelayin interfaceNtpHeader- Returns:
- float Returns a float
-
setRootDelay
public void setRootDelay(float rootDelay) - Specified by:
setRootDelayin interfaceNtpHeader- Parameters:
rootDelay- Takes in a parameter of rootDelay
-
getRootDespersion
public float getRootDespersion()- Specified by:
getRootDespersionin interfaceNtpHeader- Returns:
- float Returns a float
-
setRootDespersion
public void setRootDespersion(float rootDespersion) - Specified by:
setRootDespersionin interfaceNtpHeader- Parameters:
rootDespersion- Takes in a parameter of rootDespersion
-
getRefClockID
public int getRefClockID()- Specified by:
getRefClockIDin interfaceNtpHeader- Returns:
- int Returns a int
-
setRefClockID
public void setRefClockID(int refClockID) - Specified by:
setRefClockIDin interfaceNtpHeader- Parameters:
refClockID- Takes in a parameter of refClockID
-
getRefClockTime
- Specified by:
getRefClockTimein interfaceNtpHeader- Returns:
- String Returns a String
-
setRefClockTime
- Specified by:
setRefClockTimein interfaceNtpHeader- Parameters:
refClockTime- Takes in a parameter of refClockTime
-
getOriginateTime
- Specified by:
getOriginateTimein interfaceNtpHeader- Returns:
- String Returns a String
-
setOriginateTime
- Specified by:
setOriginateTimein interfaceNtpHeader- Parameters:
originateTime- Takes in a parameter of originateTime
-
getReceiveTime
- Specified by:
getReceiveTimein interfaceNtpHeader- Returns:
- String Returns a String
-
setReceiveTime
- Specified by:
setReceiveTimein interfaceNtpHeader- Parameters:
receiveTime- Takes in a parameter of receiveTime
-
getTransmitTime
- Specified by:
getTransmitTimein interfaceNtpHeader- Returns:
- String Returns a String
-
setTransmitTime
- Specified by:
setTransmitTimein interfaceNtpHeader- Parameters:
transmitTime- Takes in a parameter of transmitTime
-
getSrvKeyId
public int getSrvKeyId()- Specified by:
getSrvKeyIdin interfaceNtpHeader- Returns:
- int Returns a int
-
setSrvKeyId
public void setSrvKeyId(int srvKeyId) - Specified by:
setSrvKeyIdin interfaceNtpHeader- Parameters:
srvKeyId- Takes in a parameter of srvKeyId
-
getMd5Passwd
- Specified by:
getMd5Passwdin interfaceNtpHeader- Returns:
- String Returns a String
-
setMd5Passwd
- Specified by:
setMd5Passwdin interfaceNtpHeader- Parameters:
md5Passwd- Takes in a parameter of md5Passwd
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-